package com.guigu.eduservice.vo;

import lombok.Data;

import java.util.List;

@Data
public class PurchaseDemandDto {
    //设备类型
    private Long equipmentType;
    //设备品牌
    private String brand;
    //设备型号
    private String model;
    //设备价格区间
    private Integer expectedPrice;
    private String minPrice;//价格最低
    private String maxPrice;//价格最高
    //设备年份
    private Integer expectedYear;
    //发布 时间
    private List<String> releaseTime;
    private String sortType;//排序方式

    public static class ReleaseTime {
        public static final String ONE_DAY = "ONE_DAY";
        public static final String THREE_DAYS = "THREE_DAYS";
        public static final String ONE_WEEK = "ONE_WEEK";
        public static final String ONE_MONTH = "ONE_MONTH";
        public static final String THREE_MONTHS = "THREE_MONTHS";
        public static final String MORE_THAN_THREE_MONTHS = "MORE_THAN_THREE_MONTHS";
    }

    public static class SortType {
        public static final String expected_price_ASC = "priceAsc";
        public static final String expected_price_DESC = "priceDesc";
        public static final String release_time_DESC = "timeDesc";
        public static final String release_time_ASC = "timeAsc";
        public static final String expected_year_ASC = "yearAsc";
        public static final String expected_year_DESC = "yearDesc";
    }
}
